#include "MeshManager.h"

MeshManager::MeshManager()
{
}
MeshManager::~MeshManager()
{
}
MeshManager* MeshManager::getInstance() 
{
		if (instance == NULL)
			instance = new MeshManager();
		return instance;
}
Mesh* MeshManager::load(std::string filename)
{
		Mesh* mesh = new Mesh();
		if(!mesh->loadASE(filename.c_str())){
			delete mesh;
			return NULL;
		}
		return mesh;
}

MeshManager* MeshManager::instance = NULL;